package com.hudilao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hudilao.entity.StockLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * StockLogMapper接口，用于操作库存变动记录表
 */
@Mapper
public interface StockLogMapper extends BaseMapper<StockLog> {

    @Select("SELECT * FROM stock_log WHERE dish_id = #{dishId}")
    List<StockLog> selectByDishId(Long dishId);
}
